package be.djdb.utils.table;
/**
* @author Lieven Roegiers
* @copyright 2011
* @from JAVA_mylibs
*/
public class TranslateTableItem implements Comparable<TranslateTableItem>,Cloneable {
	private String key;
	private String value;
	private String translation;
	public TranslateTableItem(String key,String value) {
		this.key = key;
		this.value = value;
	}
	public void settranslation (String translation){
		this.translation = translation;
	}
	public String getKey() {
		return key;
	}
	public String getTranslation() {
		return translation;
	}
	public String getValue() {
		return value;
	}
	@Override
	public String toString() {
		return new String("KEY=>"+key+",Value=>"+value+",Translation=>"+translation+"@location=>"+ super.toString());
	}
	@Override
	public int compareTo(TranslateTableItem o) {
		return key.compareTo(o.getKey());
	}
	@Override
	protected Object clone() throws CloneNotSupportedException {
		TranslateTableItem clone=(TranslateTableItem)super.clone();
	    return clone;
	}
}
